package com.cxg.fairy.wechat.templates;

import android.widget.Toast;

import com.cxg.fairy.util.toasty.Toasty;
import com.cxg.fairy.wechat.BaseWXPayEntryActivity;
import com.tencent.mm.opensdk.modelbase.BaseReq;

/**
 * Created by CFairy on 2018/1/2
 */

public class WXPayEntryTemplate extends BaseWXPayEntryActivity {

    @Override
    protected void onPaySuccess() {
        Toasty.success(this, "支付成功！").show();
        finish();
        overridePendingTransition(0, 0);
    }

    @Override
    protected void onPayFail() {
        Toasty.warning(this, "支付失败！").show();
        finish();
        overridePendingTransition(0, 0);
    }

    @Override
    protected void onPayCancel() {
        Toasty.info(this, "支付取消！").show();
        finish();
        overridePendingTransition(0, 0);
    }

    @Override
    public void onReq(BaseReq baseReq) {

    }
}
